<?php	

/*
 * TO-DO-LIST:
 * 
 * TODO: return errors in all necessary cases
 * TODO: sanitize all input
 */

require 'Slim/Slim.php';
\Slim\Slim::registerAutoloader();

$app = new \Slim\Slim();

// debug stuff
error_reporting(E_ALL);
$app->config('debug', true);
	
$app->get('/', function () {
    echo "Was bin ich ".getApplicationVersion();
});

include 'database_info.php';
include 'database.php';
include 'redirect.php';

include 'bootstrap_application.php';
include 'bootstrap_extra.php';
include 'bootstrap_highscore.php';
include 'bootstrap_manager.php';
include 'bootstrap_photographer.php';
include 'bootstrap_picture.php';
//include 'bootstrap_test.php';

$app->run();
?>